import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JOptionPane;

import java.awt.BorderLayout;
import java.awt.Dimension;

import net.miginfocom.swing.MigLayout;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JTabbedPane;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.SwingConstants;

import java.awt.Font;

import javax.swing.JTable;
import javax.swing.JScrollPane;


public class MainFrame extends JFrame {
	private JTextField textField;
	private JTable table;
	private JTable table_1;
	public MainFrame() {
		getContentPane().setLayout(null);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(12, 65, 500, 500);
		getContentPane().add(tabbedPane);
		
		JPanel panel = new JPanel();
		tabbedPane.addTab("Contacts", null, panel, null);
		
		table_1 = new JTable(new ContactTableModel());
		table_1.setToolTipText("Contact Information");
		
		
		JScrollPane scrollPane = new JScrollPane(table_1);
		scrollPane.setPreferredSize(new Dimension(470, 470));
		panel.add(scrollPane);
		
		
		
		JPanel panel_1 = new JPanel();
		tabbedPane.addTab("Groups", null, panel_1, null);
		
		JPanel panel_2 = new JPanel();
		tabbedPane.addTab("Templates", null, panel_2, null);
		
		
		
		textField = new JTextField();
		textField.setBounds(620, 80, 450, 25);
		getContentPane().add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel = new JLabel("Recepient(s):");
		lblNewLabel.setBounds(525, 82, 95, 15);
		getContentPane().add(lblNewLabel);
		
		JTextArea textArea_1 = new JTextArea();
		textArea_1.setBounds(620, 120, 450, 150);
		getContentPane().add(textArea_1);
		
		JLabel lblSms = new JLabel("SMS:");
		lblSms.setBounds(580, 122, 70, 15);
		getContentPane().add(lblSms);
		
		JButton btnSendSms = new JButton("Send SMS");
		btnSendSms.setBounds(760, 300, 117, 25);
		getContentPane().add(btnSendSms);
		
		JButton btnNewButton = new JButton("Create Group");
		btnNewButton.setFont(new Font("Dialog", Font.BOLD, 10));
		btnNewButton.setBounds(20, 12, 135, 45);
		getContentPane().add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Manage Groups");
		btnNewButton_1.setBounds(152, 12, 155, 45);
		getContentPane().add(btnNewButton_1);
		
		JButton button = new JButton("Add Contact");
		button.setBounds(305, 12, 150, 45);
		getContentPane().add(button);
		
		JButton button_1 = new JButton("Import Contacts");
		button_1.setBounds(450, 12, 155, 45);
		getContentPane().add(button_1);
		
		JButton button_2 = new JButton("Edit Contact");
		button_2.setBounds(602, 12, 155, 45);
		getContentPane().add(button_2);
		
		JButton button_3 = new JButton("Add Msg Template");
		button_3.setBounds(756, 12, 165, 45);
		getContentPane().add(button_3);
		
		JButton button_4 = new JButton("History");
		button_4.setBounds(905, 12, 140, 45);
		getContentPane().add(button_4);
		
	}
	
	public static void main(String args[])
	{
		MainFrame mainFrame = new MainFrame();
		mainFrame.setTitle("Send It All");
		mainFrame.setSize(1100,650);
		mainFrame.setVisible(true);
	}
}